﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="FlashRender.ascx.cs"
    Inherits="BaoJian.Control.FlashRender" %>
<script type="text/javascript" language="javascript">             
 $(document).ready(function() {	  
     if(<%=list[0].Type.ToString().ToLower()%>)
     {    
         
         $('#flash1_1').flash(
            { src: "<%=list[0].Image%>", width: <%=list[0].Width%>,height: <%=list[0].Height%> },
            { version: 8 }
           );	
     }
     else
     {
        $("#flash1_1").append("<img src=\"<%=list[0].Image%>\" width=\"<%=list[0].Width%>\" height=\"<%=list[0].Height%>\"")
        $("#flash1_1").attr("href","<%=list[0].URL%>");
     }

     if(<%=list[1].Type.ToString().ToLower()%>)
     {    
         
         $('#flash1_2').flash(
            { src: "<%=list[1].Image%>", width: <%=list[1].Width%>,height: <%=list[1].Height%> },
            { version: 8 }
           );	
     }
     else
     {
        $("#flash1_2").append("<img src=\"<%=list[1].Image%>\" width=\"<%=list[1].Width%>\" height=\"<%=list[1].Height%>\"")
        $("#flash1_2").attr("href","<%=list[1].URL%>");
     }
     
     if(<%=list[2].Type.ToString().ToLower()%>)
     {           
         $('#flash1_3').flash(
            { src: "<%=list[2].Image%>", width: <%=list[2].Width%>,height: <%=list[2].Height%> },
            { version: 8 }
           );	
     }
     else
     {
        $("#flash1_3").append("<img src=\"<%=list[2].Image%>\" width=\"<%=list[2].Width%>\" height=\"<%=list[2].Height%>\"")
        $("#flash1_3").attr("href","<%=list[2].URL%>");
     }   
     
     
     if(<%=list[3].Type.ToString().ToLower()%>)
     {           
         $('#flash1_4').flash(
            { src: "<%=list[3].Image%>", width: <%=list[3].Width%>,height: <%=list[3].Height%> },
            { version: 8 }
           );	
     }
     else
     {
        $("#flash1_4").append("<img src=\"<%=list[3].Image%>\" width=\"<%=list[3].Width%>\" height=\"<%=list[3].Height%>\"")
        $("#flash1_4").attr("href","<%=list[3].URL%>");
     }                           
    });	                      
</script>

